#ifndef SWF_INTERFACE_H
#define SWF_INTERFACE_H

#include "FlashRuntimeExtensions.h"

#if WIN32
#define DLL extern "C" __declspec(dllexport)
#else
#define  DLL
#endif

#ifdef __cplusplus
extern "C" {
#endif

	DLL void ContextInitializer(void* extData,	const uint8_t* ctxType,FREContext ctx ,	uint32_t* numFunctionsToSet,const FRENamedFunction** functionsToSet);
	DLL void ContextFinalizer(FREContext ctx);

	DLL void ExtInitializer(void** extDataToSet, FREContextInitializer* ctxInitializerToSet, FREContextFinalizer* ctxFinalizerToSet) ;

	DLL void ExtFinalizer(void* extData);


 	DLL FREObject callCommand(FREContext ctx, void* funcData, uint32_t argc, FREObject argv[]);
	void sendMessageSwf(const char* name, const char* value);

	DLL void WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);

#ifdef __cplusplus
}
#endif
#endif